GBML manual / Constants

PROFILE_TOTAL

The whole frame, for the profile_ calls: everything the game did, all the phases added up.

Syntax

PROFILE_TOTAL: constant

Description

Stands for the whole frame. Pass it to profile_percent, profile_average, profile_worst or profile_cycles to get everything the game did in a frame, all the phases added up. It is the number 0, which is why the phases themselves are numbered from 1.

Example

draw_text(4, 4, $"FRAME {int_round(profile_average(PROFILE_TOTAL))}");

Draws how many frames' worth of time the game uses out of every 100. Under 100 is fine.

See also: profile_percentprofile_phases